//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat
             History:        2023/2/11
 ************************************************************/


#include <stdio.h>

typedef struct S
{
    int a;
    int arr[10];
}S;

void print(struct S s)
{
    int i = 0;
    printf("%d",s.a);
    printf("\n");
    for(i = 0; i < 10; i++)
    {
        printf("%d ",s.arr[i]);
    }
    printf("\n");
}

void print1(struct S* ps)
{
    printf("%d ",ps->a);
    printf("\n");
    for(int i = 0; i < 10; i++)
    {
        printf("%d ",ps->arr[i]);
    }
    printf("\n");
}

int main()
{
    struct S s = {100, { 1, 2, 3, 4, 5 }};
    print(s);
    print1(&s);
    return 0;
}
